package com.teach.dao;

import com.teach.dao.impl.AdminInfoDAOImpl;
import com.teach.entity.AdminInfo;
import org.junit.jupiter.api.Test;

import java.sql.SQLException;
import java.util.Date;

public class AdminInfoDAOTest {

  private AdminInfoDAO dao = new AdminInfoDAOImpl();

  @Test
  public void insert() throws SQLException {
    dao.insert(new AdminInfo(null, "admin1", "123", new Date()));
  }

  @Test
  public void select()throws SQLException {
    System.out.println(dao.selectById(1));
    System.out.println(dao.select(0, 5));
  }

}
